﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication6.WebForm1" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <div>
            <h2>注册</h2>
            姓名：<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><br/>
            密码：<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox><br/>
            邮箱：<asp:TextBox ID="TextBox3" runat="server"></asp:TextBox><br/>
            自我介绍:<asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
            <br/>
            <asp:Button ID="Button1" runat="server" Text="提交" OnClick="Button1_Click" />

        </div>
            <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox><asp:Button ID="Button2" runat="server" Text="搜索" OnClick="Button2_Click" />
        <div>
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowDeleting="GridView1_RowDeleting" OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating">
                <Columns>
                    <asp:BoundField DataField="stu_name" HeaderText="姓名" />
                    <asp:BoundField DataField="password" HeaderText="密码" />
                    <asp:BoundField DataField="email" HeaderText="邮箱" />
                    <asp:BoundField DataField="intro" HeaderText="自我介绍" />
                      <asp:CommandField HeaderText="编辑" ShowEditButton="True" ShowHeader="True">
                        <ItemStyle Width="150px" />
                        </asp:CommandField>
                        <asp:CommandField HeaderText="删除" ShowDeleteButton="True" ShowHeader="True" />
                </Columns>
            </asp:GridView>
        </div>
        </div>
    </form>
</body>
</html>
